<?php
    require 'template/header.php';
?>
<div class="container">
    <div class="container-1">
        <?php
       if(isset($_REQUEST['id'])){
           $i = $_REQUEST['id'];
           require './admin/product.php';
           require './admin/images.php';
           $pro = new product();
           $img = new images();
           $shoes = $pro->getProduct($i);
           $images = $img->getImages($i);
           
           
       
        ?>
        <div class="container-11">            
            <div id='wrapper'>
                <div id='body'>
                    <div id="bigPic">
                        <img src="<?php echo $shoes['image'];?>" width="400px" height="250px"/>
                        
                            <img src="<?php echo $images['0']['url'];?>" width="400px" height="250px" />
                            <img src="<?php echo $images['1']['url'];?>"  width="400px" height="250px"/>
                            <img src="<?php echo $images['2']['url'];?>" alt=""  width="400px" height="250px"/>
                                    
                     </div>
                     <ul id="thumbs">
                         <li class='active' rel='1'><img src="<?php echo $shoes['image'];?>" /></li>
                         <li rel='2'><img src="<?php echo $images['0']['url'];?>"/></li>
                         <li rel='3'><img src="<?php echo $images['1']['url'];?>"/></li>
                         <li rel='4'><img src="<?php echo $images['2']['url'];?>" /></li>
                     </ul>
                </div>
            </div>
            <link type="text/css" href="css/main.css" rel="stylesheet"/>
            <script type="text/javascript" src="js/jquery-1.11.0.js"></script>
            <script type="text/javascript" src="js/detail/jquery-detail.js"></script>            
        </div><!--end-container11-->
        
        <div class="container-12">
            <div class="nav">
                <div class="nav-back">
                    ‹   Trở về
                    <a href="http://giaynamdep.vn/danh-muc/giay-converse">Giày Converse</a>
                </div>
            </div>
            
            <div class="summary">
                <div class="summary-header">
                    <h1 class="title"><?php echo $shoes['name']?></h1>
                </div>
                <div class="summary-price">
                    <span class="price-old"><?php echo $shoes['price1']?> đ</span>
                    <span class="price-new"><?php echo $shoes['price']?> đ</span>
                </div>
                <div class="summary-description">
                    <p>
                        <?php echo $shoes['des']?>
                    </p>
                </div>                                
            </div>
            
            <div class="select-size">
                <form action="add_cart.php" method="post">
                    
                    <label class="kich-co">Kích cỡ</label>  
                    <select class="kich-co1" name="size">
                        <option value="">Lựa chọn...</option>
                        <option class="active" value="39">39</option>
                        <option class="active" value="40">40</option>
                        <option class="active" value="41">41</option>
                        <option class="active" value="42">42</option>
                        <option class="active" value="43">43</option>
                    </select>
                    <br/>
                    <input type="hidden" name="hidId" value="<?php echo $_GET['id']?>"/>
                    <br/>
                    <input class="btn-add-cart sb-btn" type="submit" name="btnAdd" value="Thêm vào giỏ hàng"/>
                    
                </form>
            </div>
        </div><!--end-container12-->
        <?php
           
       }
        ?>
    </div>
    
    <div class="container-2">
        <div class="title">
            <h3>Sản phẩm liên quan</h3>
        </div>
        <div class="products">
            <div class="product1"></div>
            <div class="product2"></div>
            <div class="product3"></div>
            <div class="product4"></div>
        </div>
    </div>
</div>




<?php
    require 'template/footer.php';
?>